<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<s:layout-definition>
<html>
<head>
  <title><c:out value="${nadpis}" /></title>
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/style.css" />
  <s:layout-component name="hlavicka"/>
</head>
<body>
    <div class="wholecontent" >
   <h1><c:out value="${nadpis}" /></h1>
   <div id="navigace" >
   
   
   <c:if test="${pageContext.request.isUserInRole('HUMANMGR')}" >
   <s:link href="/humans/all"><f:message key="humans.humans" /></s:link>
   <s:link href="/houses/all"><f:message key="houses.all" /></s:link>
   <a href="<c:url value="/j_spring_security_logout" />" ><f:message key="auth.logout" /></a>
   </c:if>
   
   <s:link href="/ghosts/all"><f:message key="ghosts.ghosts" /></s:link>
   <s:link href="/skills/all"><f:message key="skills.all" /></s:link>
   <s:link href="/humans/all"><f:message key="humans.humans" /></s:link>
   <s:link href="/houses/all"><f:message key="houses.all" /></s:link>
   <c:if test="${!pageContext.request.isUserInRole('ROLE_ADMIN') && !pageContext.request.isUserInRole('ROLE_USER')}" >
        <s:link href="/login"><f:message key="registration.login" /></s:link>
        <s:link href="/registration/all"><f:message key="registration.registration" /></s:link>
   </c:if>
   <c:if test="${pageContext.request.isUserInRole('ROLE_ADMIN') || pageContext.request.isUserInRole('ROLE_USER')}" >
   <a href="<c:url value="/j_spring_security_logout" />" ><f:message key="auth.logout" /></a>
   </c:if>
   
   
   </div>
   <div id="obsah">
       <s:layout-component name="telo"/>
    </div>
    </div>
</body>
</html>
</s:layout-definition>
